package subscriber

import (
	"log"

	order "git.oschina.net/fanbuchi/xgggh/order/proto/order"
	"golang.org/x/net/context"
)

type Example struct{}

func (e *Example) Handle(ctx context.Context, msg *order.Message) error {
	log.Print("Handler Received message: ", msg.Say)
	return nil
}

func Handler(ctx context.Context, msg *order.Message) error {
	log.Print("Function Received message: ", msg.Say)
	return nil
}
